from django import forms
from .models import Server

class ServerForm(forms.ModelForm):
    class Meta:
        model = Server
        fields = ('name', 'ip', 'port')
        labels = {
            'name': '服务器名字',
            'ip': '服务器IP',
            'port': '服务器端口',
        }